/*
 * File:   addTempDialog.cpp
 * Author: switch
 *
 * Created on 17 février 2013, 23:15
 */

#include "addTempDialog.h"

addTempDialog::addTempDialog(accueil *parent) {
    widget.setupUi(this);
    
    parent_=parent;
    
    QObject::connect(widget.addTempBtn, SIGNAL(clicked()), this, SLOT(addTempListener()));  
}

addTempDialog::~addTempDialog() {
}

void addTempDialog::addTempListener() {
    
    
    //On ajout la liste à l'affichage
    parent_->addTemp(widget.templateName->text().toStdString());
    
    
    
    //Permet de fermer la fenetre
    accept();
}